const http = require('request');
const params = {
    tk: "zftsl: 16900c80abcbf839816d71b54baf8408", //微信token
    act: "GetCustSubscribeDateAll",
    pid: 107,
    id: 6539,
    month: 202203,
}
const selectSession = () => http({
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateAll&pid=1&id=6539&month=202203`,//
    url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateAll&pid=107&id=6539&month=202203`,//选择预约场次
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateDetail&pid=107&id=6539&scdate=2022-03-16`,//选择预约日期
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetOrderStatus`,//确定预约
    method: "GET",//请求方式，默认为get
    headers: {//设置请求头
        // "content-type": "application/json",
        "Connection": "keep-alive",
        "X-Requested-With": "XMLHttpRequest",
        "Referer": "https://servicewechat.com/wx2c7f0f3c30d99445/92/page-frame.html",
        "zftsl": params.tk,
        "Accept-Encoding": "gzip, deflate, br",
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat"
    },
    "Cookie": "ASP.NET_SessionId=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDczMTM0MDYuNzE5MTU4NCwiZXhwIjoxNjQ3MzE3MDA2LjcxOTE1ODQsInN1YiI6IllOVy5WSVAiLCJqdGkiOiIyMDIyMDMxNTExMDMyNiIsInZhbCI6ImVCd2RBUUlBQUFBUU5HRmxZVGs1WkRabU5ETTFOREkxTmh4dmNYSTFielZDT1hJNWVUWnlZazlvUTNGalpuTnVPVlZMUjNGTkFCeHZcclxuVlRJMldIUTRkSGRqWjNwSVgzZDBUUzFXWlZadFJYUnJVV3RaRHpJeU1pNHlNVEl1TWpNNUxqSTFNZ0FBQUFBQUFBQT0ifQ.6x7ze0pqtunIrANv9ZPKg_NeVDgmw1T18Bpja0W1vyM",
}, function (error, response, body) {
    // console.log(response);
    console.log(JSON.parse(body.toString()));
    // selectTime()
});
const selectTime = () => http({
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateAll&pid=1&id=6539&month=202203`,//
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateAll&pid=107&id=6539&month=202203`,//选择预约场次
    url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateDetail&pid=107&id=6539&scdate=2022-03-21`,//选择预约日期
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetOrderStatus`,//确定预约
    method: "GET",//请求方式，默认为get
    headers: {//设置请求头
        // "content-type": "application/json",
        "Connection": "keep-alive",
        "X-Requested-With": "XMLHttpRequest",
        "Referer": "https://servicewechat.com/wx2c7f0f3c30d99445/92/page-frame.html",
        "zftsl": params.tk,
        "Accept-Encoding": "gzip, deflate, br",
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat"
    },
    "Cookie": "ASP.NET_SessionId=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDczMTM0MDYuNzE5MTU4NCwiZXhwIjoxNjQ3MzE3MDA2LjcxOTE1ODQsInN1YiI6IllOVy5WSVAiLCJqdGkiOiIyMDIyMDMxNTExMDMyNiIsInZhbCI6ImVCd2RBUUlBQUFBUU5HRmxZVGs1WkRabU5ETTFOREkxTmh4dmNYSTFielZDT1hJNWVUWnlZazlvUTNGalpuTnVPVlZMUjNGTkFCeHZcclxuVlRJMldIUTRkSGRqWjNwSVgzZDBUUzFXWlZadFJYUnJVV3RaRHpJeU1pNHlNVEl1TWpNNUxqSTFNZ0FBQUFBQUFBQT0ifQ.6x7ze0pqtunIrANv9ZPKg_NeVDgmw1T18Bpja0W1vyM",
}, function (error, response, body) {
    console.log(body);
    // sure()
    // console.log(JSON.parse(body.toString()));
});
// selectTime()
const sure = () => http({
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateAll&pid=1&id=6539&month=202203`,//
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateAll&pid=107&id=6539&month=202203`,//选择预约场次
    // url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetCustSubscribeDateDetail&pid=107&id=6539&scdate=2022-03-21`,//选择预约日期
    url: `https://cloud.cn2030.com/sc/wx/HandlerSubscribe.ashx?act=GetOrderStatus`,//确定预约
    method: "GET",//请求方式，默认为get
    headers: {//设置请求头
        "content-type": "application/json",
        "Connection": "keep-alive",
        "X-Requested-With": "XMLHttpRequest",
        "Referer": "https://servicewechat.com/wx2c7f0f3c30d99445/92/page-frame.html",
        "Cookie": "ASP.NET_SessionId=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDczMTM0MDYuNzE5MTU4NCwiZXhwIjoxNjQ3MzE3MDA2LjcxOTE1ODQsInN1YiI6IllOVy5WSVAiLCJqdGkiOiIyMDIyMDMxNTExMDMyNiIsInZhbCI6ImVCd2RBUUlBQUFBUU5HRmxZVGs1WkRabU5ETTFOREkxTmh4dmNYSTFielZDT1hJNWVUWnlZazlvUTNGalpuTnVPVlZMUjNGTkFCeHZcclxuVlRJMldIUTRkSGRqWjNwSVgzZDBUUzFXWlZadFJYUnJVV3RaRHpJeU1pNHlNVEl1TWpNNUxqSTFNZ0FBQUFBQUFBQT0ifQ.6x7ze0pqtunIrANv9ZPKg_NeVDgmw1T18Bpja0W1vyM",
        "zftsl": params.tk,
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat"
    },
    "Cookie": "ASP.NET_SessionId=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NDczMTM0MDYuNzE5MTU4NCwiZXhwIjoxNjQ3MzE3MDA2LjcxOTE1ODQsInN1YiI6IllOVy5WSVAiLCJqdGkiOiIyMDIyMDMxNTExMDMyNiIsInZhbCI6ImVCd2RBUUlBQUFBUU5HRmxZVGs1WkRabU5ETTFOREkxTmh4dmNYSTFielZDT1hJNWVUWnlZazlvUTNGalpuTnVPVlZMUjNGTkFCeHZcclxuVlRJMldIUTRkSGRqWjNwSVgzZDBUUzFXWlZadFJYUnJVV3RaRHpJeU1pNHlNVEl1TWpNNUxqSTFNZ0FBQUFBQUFBQT0ifQ.6x7ze0pqtunIrANv9ZPKg_NeVDgmw1T18Bpja0W1vyM",
}, function (error, response, body) {
    console.log(body);
    // console.log(JSON.parse(body.toString()));
});
// sure()
selectSession()
